<?php
class Category_model extends MY_Model
{
    private $table = 'blues_news_category';
    public function __construct()
    {
        parent::__construct();
    }
    public function get_cat_by_id($id)
    {
        $this->db->where("cat_id",$id);
        $query=$this->db->get($this->table);
        return $query->row_array();
    }
    public function get_cat_list($fields = "*")
    {
		$sql = "SELECT {$fields} FROM {$this->table} ORDER BY sort_order DESC,cat_id ASC";
		$query = $this->db->query($sql);
        return $query->result_array();        
    }
  
 
}

/* End of file flybird/orders_model.php */
/* Location: ./application/models/orders_model.php */